{extend name='admin@public/content'}

{block name="button"}
<!--{if auth("$classuri/addCate")}-->
<button data-modal='{:url("$classuri/addCate")}' data-title="新增分类" class='layui-btn layui-btn-sm layui-btn-primary'>新增分类</button>
<!--{/if}-->

{block name="content"}
<!-- 表单搜索 开始 -->
<form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">手机号码</label>
        <div class="layui-input-inline">
            <input name="mobile" value="{$Think.get.mobile}" placeholder="请输入手机号码" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
    </div>

</form>
<!-- 表单搜索 结束 -->

<form onsubmit="return false;" data-auto="true" method="post">
    <!--{if empty($list)}-->
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    <!--{else}-->
    <input type="hidden" value="resort" name="action">
    <table class="layui-table notevent" lay-skin="line">
        <thead>
        <tr>
            <th class='list-table-check-td'>
                <input data-none-auto="" data-check-target='.list-check-box' type='checkbox'/>
            </th>
            <th class='list-table-sort-td w60'>ID</th>
            <th class="w150">用户名</th>
            <th class="w156">手机号码</th>
            <th class="w200">内容</th>
            <th class="w200">回复</th>
            <th class="w72">状态</th>
            <th class='text-center w200'>操作</th>
        </tr>
        </thead>
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='list-table-check-td'>
                <input class="list-check-box" value='{$vo.id}' type='checkbox'/>
            </td>
            <td class='list-table-sort-td'>{$vo.id}</td>
            <td>{$vo.account}</td>
            <td>{$vo.mobile}</td>
            <td>{$vo.content}</td>
            <td>{$vo.reply}</td>
            <td class='text-left'>{$vo.status_txt}</td>
            <td class='text-center nowrap'>
                {if auth("$classuri/reply")}
                <a data-modal='{:url("$classuri/reply")}?id={$vo.id}' href="javascript:void(0)">回复</a>
                {/if}
                {if auth("$classuri/remove")}
                <span class="text-explode">|</span>
                <a data-update="{$vo.id}" data-field='delete' data-action='{:url("$classuri/remove")}' href="javascript:void(0)">删除</a>
                {/if}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {if isset($page)}<p>{$page|raw}</p>{/if}
    <!--{/if}-->
</form>
<script>
    (function () {
        window.form.render();
        window.laydate.render({range: true, elem: '#create_at'});
    })();
</script>
{/block}